import 'package:json_annotation/json_annotation.dart';

part 'UserDto.g.dart';

///UserDto
@JsonSerializable()
class UserDto {

  ///头像地址
  @JsonKey(name: "avatarUrl")
  String? avatarUrl;

  ///用户名
  @JsonKey(name: "name")
  String? name;

  ///密码
  @JsonKey(name: "password")
  String? password;

  ///手机号
  @JsonKey(name: "phone")
  String? phone;

  ///个性签名
  @JsonKey(name: "signature")
  String? signature;

  UserDto({
    this.avatarUrl,
    this.name,
    this.password,
    this.phone,
    this.signature,
  });

  factory UserDto.fromJson(Map<String, dynamic> json) => _$UserDtoFromJson(json);

  Map<String, dynamic> toJson() => _$UserDtoToJson(this);
}